package com.cc.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.cc.infrastructure.db.SupplyDb;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("前端传递参数")
public class SupplyDto {


  /**
   *
   **/
  @ApiModelProperty("")
  private String id;
  /**
   *
   **/
  @ApiModelProperty("")
  private String name;

  public static SupplyDb convertSupplyDbBySupplyDto(SupplyDto supplyDto) {
    SupplyDb supplydb = new SupplyDb();
    supplydb.setId(supplyDto.getId());
    supplydb.setName(supplyDto.getName());
    return supplydb;
  }
}